package org.zzk.util;

import io.netty.util.internal.ThreadLocalRandom;


public class RandomBooleanGenerator {

    public static boolean nextBooleanWithProbability(double probability) {
        return ThreadLocalRandom.current().nextDouble() < probability;
    }
}
